#ifndef HLS_IMG_H
#define HLS_IMG_H

#include "common.h"
class Hls_img
{
    public:
        Hls_img();
        virtual ~Hls_img();
        static void BienDoiFourier(const char* filename);
        static void BienDoiNhiPhan(const char* filename);
        static void BienDoiMaTranDongHien(const char* filename);
        static void BienDoiMaTranDongHien_8Ke(const char* filename);

        static void test_biendoinhiphan(const char* filename);
        static void test_fourier(const char* filename);
        static void test_cc();

        static long double Entropy(Mat image);
        static long double Energy(Mat image);
        static long double Inertia(Mat image);

        static double Distance(int x, int y, int xa, int xy);
        static void Irregularity(Mat image, double irgl0, double irgl1);
        static int isSafe(Mat M, int row, int col, Mat visited, bool x, Mat matric, int count);
        static void DFS(Mat M, int row, int col, Mat visited, bool x, Mat matric, int count);
        static int countIslands(Mat M, bool x, Mat matric);
    protected:
    private:
};

#endif // HLS_IMG_H
